#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>
int A(int n)
{
	int result = 1;
	for (int i = 1; i <= n; i++)
	{
		result *= i;
	}
	return result;
}
int B(int x, int term)
{
	double sum = 0;
	int sign = 1;
	for (int i = 1; i <= term; i += 2)
	{
		sum += sign * pow(x, i) / A(i);
		sign *= -1;
	}
}
